<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>版本比较</title>
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/css/viewContentChanges.css" />

</head>
<body>
<c:set var="contextPath" value="<%=request.getContextPath()%>"></c:set>
<DIV style="MARGIN-LEFT: 8px" class="dh sml">
<A href="">${article.title}</A> &gt;&nbsp;修改对比</DIV>
<DIV class=titbg><B>和前一版本对比</B></DIV>

<DIV id=content>
<TABLE class=modify border=0 cellSpacing=0 cellPadding=0>
  <TBODY>
  <TR class=gray>
    <TD>
      <DIV class=box> <SPAN style="PADDING-RIGHT: 8px; FLOAT: right">同步滚动:</SPAN> 
      <SPAN class=modify-time>
      	<fmt:formatDate value="${articleModify.articleContent.createTime}" pattern="yyyy-MM-dd HH:mm"/>
      </SPAN> 
      <SPAN class=modify-author><A title=查看此用户资料 
      href="${contextPath}/viewCustomerInfo?customer.id=${articleModify.articleContent.createByUserId}" target=_blank>${articleModify.articleContent.createByUser.userName}</A></SPAN> </DIV></TD>
    <TD>
  	 
      <DIV class=box>
     	 <c:if test="${not empty articlePrev}">
      <SPAN class=modify-time>
				<fmt:formatDate value="${articlePrev.articleContent.createTime}" pattern="yyyy-MM-dd HH:mm"/>
		</SPAN> <SPAN 
      class=modify-author><A title=查看此用户资料  href="${contextPath}/viewCustomerInfo?customer.id=${article.articleContent.createByUserId}" target=_blank>${article.articleContent.createByUser.userName}</A></SPAN>
       </c:if> 
      </DIV>
      
      </TD>
     
  </TR>
 </TBODY>
</TABLE>

<BLOCKQUOTE id=oldVersion class="diffbox text">

  <DIV class=boxinner>
  <DIV class="article text">
  
  	<table border="1px" style="text-align:center；">
  		<tr>
  			<td>
  				类别：
  			</td>
  			<td colspan="2">
  				${articleModify.category.cateName}
  			</td>
  		</tr>
  		<tr>
  			<td>
  				语言：
  			</td>
  			<td colspan="2">
  				<c:choose>
  					<c:when test="${articleModify.articleContent.local == 0}">
  						中文
  					</c:when>
  					<c:when test="${articleModify.articleContent.local == 1}">
  						English
  					</c:when>
  				</c:choose>
  			</td>
  		</tr>
  	</table>
  	<br></br>
  	<table border="1px" style="text-align: center">
  	<thead>
  		<tr>
  			<th>
  				图片
  			</th>
  			<th>
  				描述
  			</th>
  			<th>
  				封面
  			</th>
  		</tr>
  	</thead>
  		<c:forEach var="apv" varStatus="vs" items="${articleModify.album.apvList}">
				   		
       			<tr>
		       
		            <td style="width:100px">
		                <a href="${contextPath}${apv.photo.original}" target="_blank" title="${apv.photo.photoName}" rel="gallery" download="${apv.photo.photoName}"><img src="${contextPath}${apv.photo.thumbnailSmall}"></a>
		            </td>
		            <td id="desc${apv.photo.id}" style="width:40%">
		            	<c:choose>
		            		<c:when test="${not empty apv.photoDescription}">
		            			<c:set value="${apv.photoDescription}" var="desc"></c:set>
		            		</c:when>
		            		<c:otherwise>
		            			<c:set value="" var="desc"></c:set>
		            		</c:otherwise>
		            	</c:choose>
		            	<a id="sign-text${apv.photo.id}" class="sign-text" onclick="switchDescArea(1,'${apv.photo.id}','${vs.count-1}', '${apv.photoDescription}')">${desc}</a>
						<input class="photo-input" type="hidden" name="photos[${vs.count - 1}].id" value="${apv.photo.id}">
		            </td>
		            <c:choose>
		           
		            	<c:when test="${apv.photo.id == articleModify.album.coverPhotoId}">
		            		<td>是</td>
		            	</c:when>
		            	<c:otherwise>
		            		<td>&nbsp;</td>
		            	</c:otherwise>
		            </c:choose>
		       
		    </tr>
       	</c:forEach>
  	</table>
  	<br></br>
 	${articleModify.articleContent.content}
  <DIV class=clear></DIV>
  </DIV>

  </DIV>
 
 </BLOCKQUOTE>
 
 
 <BLOCKQUOTE id=newVersion class="diffbox text">
  <DIV class=boxinner>
  <DIV class="article text">
  <c:if test="${not empty articlePrev}">
 	 <table border="1px" style="text-align: center">
  		<tr>
  			<td>
  				类别：
  			</td>
  			<td colspan="2">
  				${articlePrev.category.cateName}
  			</td>
  		</tr>
  		<tr>
  			<td>
  				语言：
  			</td>
  			<td colspan="2">
  				<c:choose>
  					<c:when test="${articlePrev.articleContent.local == 0}">
  						中文
  					</c:when>
  					<c:when test="${articlePrev.articleContent.local == 1}">
  						English
  					</c:when>
  				</c:choose>
  			</td>
  		</tr>
  	</table>
  	<br></br>
  	<table border="1px" style="text-align: center">
  	<thead>
  		<tr>
  			<th>
  				图片
  			</th>
  			<th>
  				描述
  			</th>
  			<th>
  				封面
  			</th>
  		</tr>
  	</thead>
  		<c:forEach var="apv" varStatus="vs" items="${articlePrev.album.apvList}">
				   		
       			<tr>
		       
		            <td style="width:100px">
		                <a href="${contextPath}${apv.photo.original}" target="_blank" title="${apv.photo.photoName}" rel="gallery" download="${apv.photo.photoName}"><img src="${contextPath}${apv.photo.thumbnailSmall}"></a>
		            </td>
		            <td id="desc${apv.photo.id}" style="width:40%">
		            	<c:choose>
		            		<c:when test="${not empty apv.photoDescription}">
		            			<c:set value="${apv.photoDescription}" var="desc"></c:set>
		            		</c:when>
		            		<c:otherwise>
		            			<c:set value="" var="desc"></c:set>
		            		</c:otherwise>
		            	</c:choose>
		            	<a id="sign-text${apv.photo.id}" class="sign-text" onclick="switchDescArea(1,'${apv.photoId}','${vs.count-1}', '${apv.photoDescription}')">${desc}</a>
						<input class="photo-input" type="hidden" name="photos[${vs.count - 1}].id" value="${apv.photo.id}">
		            </td>
		            <c:choose>
		           
		            	<c:when test="${apv.photo.id == articlePrev.album.coverPhotoId}">
		            		<td>是</td>
		            	</c:when>
		            	<c:otherwise>
		            		<td>&nbsp;</td>
		            	</c:otherwise>
		            </c:choose>
		       
		    </tr>
       	</c:forEach>
  	</table>
  	<br></br>
 	${articlePrev.articleContent.content}
  </c:if>
  <DIV class=clear></DIV>
  </DIV>
	
  </DIV>
 
 </BLOCKQUOTE>

</DIV>
      
      
      



</body>
</html>